#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int a[100500];
int n;
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    scanf("%d",&n);
    int ma=0;
    for(int i=1;i<=n;i++){
        int c;
        scanf("%d",&c);
        a[c]++;
        ma=max(ma,c);
    }
    ll va=0;
    ll ans=0;
    for(int i=ma;i>=1;i--){
        if(va<a[i]){
            ans+=a[i]-va;
            va=a[i];
        }
    }
    cout<<ans;
}